/* 复杂项目模块统一管理可以使用 */
// const files = import.meta.glob('./*.js', { eager: true });
// let api = {};
// Object.keys(files).forEach((key) => {
// 	api = {
// 		...api,
// 		// [key.replace(/(.*\/)*([^.]+).*/gi, '$2')]: files[key].default,
// 		...files[key].default
// 	};
// });

// export default api;

import request from '@/ulm/request';

export default {
	/**
	 * 登录
	 */
	bannerlist: (data) =>
		request({
			url: '/api/index/bannerlist',
			method: 'POST',
			data,
		}),
	genjinlist: (data) =>
		request({
			url: '/api/kehu/genjinlist',
			method: 'POST',
			data,
		}),
	allarea: (data) =>
		request({
			url: '/api/hose/allarea',
			method: 'POST',
			data,
		}),
	guizesm: (data) =>
		request({
			url: '/api/kehu/guizesm',
			method: 'POST',
			data,
		}),
	dayrenwu: (data) =>
		request({
			url: '/api/index/dayrenwu',
			method: 'POST',
			data,
		}),
	txlog: (data) =>
		request({
			url: '/api/user/txlog',
			method: 'POST',
			data,
		}),
	addtixian: (data) =>
		request({
			url: '/api/user/addtixian',
			method: 'POST',
			data,
		}),
	txfile: (data) =>
		request({
			url: '/api/user/txfile',
			method: 'POST',
			data,
		}),
	yongjinlist: (data) =>
		request({
			url: '/api/user/yongjinlist',
			method: 'POST',
			data,
		}),
	swadd: (data) =>
		request({
			url: '/api/user/swadd',
			method: 'POST',
			data,
		}),
	xuqiuadd: (data) =>
		request({
			url: '/api/user/xuqiuadd',
			method: 'POST',
			data,
		}),
	swfile: (data) =>
		request({
			url: '/api/user/swfile',
			method: 'POST',
			data,
		}),
	addgenjin: (data) =>
		request({
			url: '/api/kehu/addgenjin',
			method: 'POST',
			data,
		}),
	allyuanyin: (data) =>
		request({
			url: '/api/kehu/allyuanyin',
			method: 'POST',
			data,
		}),
	tuihui: (data) =>
		request({
			url: '/api/kehu/tuihui',
			method: 'POST',
			data,
		}),
	yrsike: (data) =>
		request({
			url: '/api/kehu/yrsike',
			method: 'POST',
			data,
		}),
	wuxiao: (data) =>
		request({
			url: '/api/kehu/wuxiao',
			method: 'POST',
			data,
		}),

	addhezuo: (data) =>
		request({
			url: '/api/kehu/addhezuo',
			method: 'POST',
			data,
		}),
	addkehu: (data) =>
		request({
			url: '/api/kehu/addkehu',
			method: 'POST',
			data,
		}),
	kehufile: (data) =>
		request({
			url: '/api/kehu/kehufile',
			method: 'POST',
			data,
		}),
	baifang: (data) =>
		request({
			url: '/api/kehu/baifang',
			method: 'POST',
			data,
		}),
	companyfile: (data) =>
		request({
			url: '/api/kehu/companyfile',
			method: 'POST',
			data,
		}),
	searchcom: (data) =>
		request({
			url: '/api/kehu/searchcom',
			method: 'POST',
			data,
		}),
	kehulist: (data) =>
		request({
			url: '/api/kehu/kehulist',
			method: 'POST',
			data,
		}),

	banklist: (data) =>
		request({
			url: '/api/user/banklist',
			method: 'POST',
			data,
		}),
	delbank: (data) =>
		request({
			url: '/api/user/delbank',
			method: 'POST',
			data,
		}),
	bankadd: (data) =>
		request({
			url: '/api/user/bankadd',
			method: 'POST',
			data,
		}),
	txfile: (data) =>
		request({
			url: '/api/user/txfile',
			method: 'POST',
			data,
		}),
	addtixian: (data) =>
		request({
			url: '/api/user/addtixian',
			method: 'POST',
			data,
		}),
	txlog: (data) =>
		request({
			url: '/api/user/txlog',
			method: 'POST',
			data,
		}),
	feedtype: (data) =>
		request({
			url: '/api/user/feedtype',
			method: 'POST',
			data,
		}),
	yijianlog: (data) =>
		request({
			url: '/api/user/yijianlog',
			method: 'POST',
			data,
		}),

	addfeed: (data) =>
		request({
			url: '/api/user/addfeed',
			method: 'POST',
			data,
		}),

	article: (data) =>
		request({
			url: '/api/index/article',
			method: 'POST',
			data,
		}),
	deletelike: (data) =>
		request({
			url: '/api/user/deletelike',
			method: 'POST',
			data,
		}),
	wxlogin: (data) =>
		request({
			url: '/api/login/wxlogin',
			method: 'POST',
			data,
		}),
	dayrenwu: (data) =>
		request({
			url: '/api/index/dayrenwu',
			method: 'POST',
			data,
		}),
	banner: (data) =>
		request({
			url: '/api/index/banner',
			method: 'POST',
			data,
		}),
	accountLogin: (data) =>
		request({
			url: '/user/api/user/accountLogin',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '登录中',
			},
		}),
	hoselist: (data) =>
		request({
			url: '/api/hose/hoselist',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '登录中',
			},
		}),
	kehumsg: (data) =>
		request({
			url: '/api/index/kehumsg',
			method: 'POST',
			data,
		}),
	msglist: (data) =>
		request({
			url: '/api/index/msglist',
			method: 'POST',
			data,
		}),
	msgfile: (data) =>
		request({
			url: '/api/index/msgfile',
			method: 'POST',
			data,
		}),
	classtype: (data) =>
		request({
			url: '/api/hose/classtype',
			method: 'POST',
			data,
		}),
	areaall: (data) =>
		request({
			url: '/api/hose/areaall',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '登录中',
			},
		}),

	product: (data) =>
		request({
			url: '/api/hose/product',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '登录中',
			},
		}),
	priceall: (data) =>
		request({
			url: '/api/hose/priceall',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '登录中',
			},
		}),
	likelist: (data) =>
		request({
			url: '/api/user/likelist',
			method: 'POST',
			data,
		}),
	userprofile: (data) =>
		request({
			url: '/api/user/profile',
			method: 'POST',
			data,
		}),
	addlike: (data) =>
		request({
			url: '/api/user/addlike',
			method: 'POST',
			data,
		}),

	userxinxi: (data) =>
		request({
			url: '/api/user/index',
			method: 'POST',
			data,
		}),
	allcity: (data) =>
		request({
			url: '/api/hose/allcity',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '登录中',
			},
		}),
	hosedetail: (data) =>
		request({
			url: '/api/hose/hosedetail',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '登录中',
			},
		}),

}